//
//  ROPhotoBrowser
//  Runone
//
//  Created by runone02 on 16/10/17.
//  Copyright © 2016年 runone. All rights reserved.
//
#import <UIKit/UIKit.h>


@class ROButton, ROPhotoBrowser;

@protocol ROPhotoBrowserDelegate <NSObject>

@required

- (UIImage *)photoBrowser:(ROPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index;

@optional

- (NSURL *)photoBrowser:(ROPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index;

@end


@interface ROPhotoBrowser : UIView <UIScrollViewDelegate>

@property (nonatomic,   weak) UIView    *sourceImagesContainerView;
@property (nonatomic, assign) NSInteger currentImageIndex;
@property (nonatomic, assign) NSInteger imageCount;
@property (nonatomic, assign) BOOL      isAnnimation;//是否需要动画


@property (nonatomic, weak) id<ROPhotoBrowserDelegate> delegate;

- (void)show;

@end
